package com.bruce.demo1.principles.demo3.dlp.demo1;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 测试类
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/21 6:48
 */
public class Test {
    public static void main(String[] args) {
        XiJieHardDisk hardDisk = new XiJieHardDisk();
        KingStonMemory stonMemory = new KingStonMemory();
        InterCpu cpu = new InterCpu();
        Computer computer = new Computer();
        computer.setCpu(cpu);
        computer.setHardDisk(hardDisk);
        computer.setStonMemory(stonMemory);
        computer.run();

    }
}
